.communityBox{
  max-width: 800px;
  width:100%;
  margin: 0 auto;
  background-color: #fff;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, .1);
  margin-bottom: 50px;
  height: 610px;
  border-radius: 5px;
  display: flex;

  // 聊天窗口左右
  .left {
    width: 250px;
    background-color: #eee;
    overflow: hidden;
    padding: 5px;

    h3 {
      text-align: center;
      height: 40px;
      background-color: #fcfcfc;
      line-height: 40px;
      cursor: pointer;
    }

    ul {
      max-height: 600px;
      overflow: auto;
      &::-webkit-scrollbar
      {
        width: 2px;
        background-color:#F5F5F5;
      }
      /*定义滚动条轨道
      内阴影+圆角*/
      &::-webkit-scrollbar-track
      {
        // -webkit-box-shadow:inset 0 0 6px rgba;
        border-radius:999px;
        background-color:#F5F5F5;
      }
      /*定义滑块
      内阴影+圆角*/
      &::-webkit-scrollbar-thumb
      {
        border-radius:999px;
        -webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);
        background-color: #fff;
      }

      li {
        border-radius: 5px;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 5px;
        margin-bottom: 8px; 
        cursor: pointer;
  
        img {
          width: 40px;
          height: 40px;
          border-radius: 50%;
          margin-right: 10px;
        }
        p {
          white-space: nowrap; 
          overflow: hidden; 
          text-overflow: ellipsis; 
        }
      }
    }
    
    .active {
      background-color: #fff;
    }
  }

  .right {
    // max-width: 700px;
    width: 100%;
    position: relative;
  }

  .titleBox {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f6f6f6;

    .fh{
      font-size: 30px;
      cursor: pointer;
    }

    h2 {
      color: #333;
    }

    p {
      color: #007aff;
    }    
  }

  .inputBox {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    box-sizing: border-box;
    padding: 10px;
    background-color: #f6f6f6;
    height: 130px;

    .options {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 10px;

      .button {
        box-sizing: border-box;
        outline: none;
        background-color: #333;
        padding: 5px 10px;  
        width: 130px;
        border-radius: 5px;
        border: 1px solid #333;
        transition: 0.1s;
        font-size: 18px;
        font-weight: 550;
        color: #fff;
        cursor: pointer;

        &:hover {
          background-color: #000;
        }

        &:active {
          background-color: #999;
          border: 1px solid #ccc;
        }
      }
    }

    .input {
      box-sizing: border-box;
      resize: none;
      width: 100%;
      outline: none;
      background-color: #fff;
      border: none;
      padding: 5px;
      border-radius: 5px;
      height: 60px;
      font-size: 14px;
    }
  }
}
// 聊天消息样式
.showBox{
  overflow: hidden;

  ul {
    box-sizing: border-box;
    max-height: 430px;
    overflow: auto;
    padding-bottom: 20px;
    &::-webkit-scrollbar
      {
        width: 8px;
        background-color:#F5F5F5;
      }
      /*定义滚动条轨道
      内阴影+圆角*/
      &::-webkit-scrollbar-track
      {
        // -webkit-box-shadow:inset 0 0 6px rgba;
        border-radius:999px;
        background-color:#F5F5F5;
      }
      /*定义滑块
      内阴影+圆角*/
      &::-webkit-scrollbar-thumb
      {
        border-radius:999px;
        background-color: #e9e9e9;
      }
  }
}
//  他人
.showText {
  display: flex;
  margin-top: 20px;
  align-items: flex-end;

  .show_left {
    width: 35px;
    height: 35px;
    margin-left: 10px;
    margin-right: 5px;
    padding-bottom: 18px;
  }

  .show_right {

    .show_text{
      max-width: 85%;
      background-color: #eee;
      padding: 5px 10px;
      border-radius: 5px;
      font-size: 14px;
      margin-bottom: 2px;
      word-break: break-all;
    }

    .show_time {
      font-size: 12px;
      color: #C0C0C0;
    }
  }

}
// 我的
.myText {
  display: flex;
  margin-top: 20px;
  justify-content: flex-end;
  align-items: flex-end;

   .my_right {
    width: 35px;
    height: 35px;
    margin-right: 10px;
    margin-left: 5px;
    padding-bottom: 18px;
  }

  .my_left {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    .my_text{
      max-width: 85%;
      background-color: #e4e8fc;
      padding: 5px 10px;
      border-radius: 5px;
      font-size: 14px;
      margin-bottom: 2px;
      word-break: break-all;
    }

    .my_time {
      font-size: 12px;
      color: #C0C0C0;
    }
  }
}
// 加入群聊
.toast {
  width: auto;
  margin: 0 auto;
  font-size: 12px;
  padding: 10px;
  text-align: center;
  color: #c0c0c0;
}